//
//  MyURLConnectionDelegate.h
//  YuiKe
//
//  Created by yuike5 yuike5 on 11-11-8.
//  Copyright (c) 2011年 yuike. All rights reserved.
//

#import <Foundation/Foundation.h>


@protocol MyURLConnectionCallback <NSObject>
- (void)URLConnectionDidFailWithError:(NSError*)error;
- (void)URLConnectionDidFinishLoading:(NSString*)content;
@end


@interface MyURLConnectionDelegate : NSObject
{
    NSMutableData* _data;
    int _statusCode;
    id<MyURLConnectionCallback> _delegate;
}

@property (nonatomic, readonly) NSMutableData* data;
@property (nonatomic, readonly) int statusCode;
@property (nonatomic, assign) id<MyURLConnectionCallback> delegate;
@end
